.class Lcom/direction/hold/ui/CommonActivity$13;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# instance fields
.field private synthetic a:Landroid/widget/EditText;

.field private synthetic b:Lcom/direction/hold/ui/CommonActivity;


# direct methods
.method constructor <init>(Lcom/direction/hold/ui/CommonActivity;Landroid/widget/EditText;)V
    .locals 0

    iput-object p1, p0, Lcom/direction/hold/ui/CommonActivity$13;->b:Lcom/direction/hold/ui/CommonActivity;

    iput-object p2, p0, Lcom/direction/hold/ui/CommonActivity$13;->a:Landroid/widget/EditText;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 6

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$13;->a:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$13;->b:Lcom/direction/hold/ui/CommonActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CommonActivity;->d:Lcom/direction/hold/ui/CommonActivity;

    const v1, 0x7f05005f

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$13;->a:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/io/File;

    iget-object v2, p0, Lcom/direction/hold/ui/CommonActivity$13;->b:Lcom/direction/hold/ui/CommonActivity;

    iget-object v2, v2, Lcom/direction/hold/ui/CommonActivity;->p:Lcn/cheln/explorer/beans/FileInfo;

    invoke-virtual {v2}, Lcn/cheln/explorer/beans/FileInfo;->g()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/direction/hold/ui/CommonActivity$13;->b:Lcom/direction/hold/ui/CommonActivity;

    iget-object v2, v2, Lcom/direction/hold/ui/CommonActivity;->d:Lcom/direction/hold/ui/CommonActivity;

    invoke-static {v1, v0, v2}, Lcn/cheln/explorer/actions/OperationUtil;->a(Ljava/io/File;Ljava/lang/String;Lcom/direction/hold/ui/CommonActivity;)Ljava/lang/Boolean;

    move-result-object v1

    if-eqz v1, :cond_0

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v2

    if-nez v2, :cond_2

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$13;->b:Lcom/direction/hold/ui/CommonActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CommonActivity;->d:Lcom/direction/hold/ui/CommonActivity;

    const v1, 0x7f050060

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0

    :cond_2
    new-instance v2, Lcn/cheln/explorer/beans/FileInfo;

    new-instance v3, Ljava/io/File;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v5, p0, Lcom/direction/hold/ui/CommonActivity$13;->b:Lcom/direction/hold/ui/CommonActivity;

    iget-object v5, v5, Lcom/direction/hold/ui/CommonActivity;->p:Lcn/cheln/explorer/beans/FileInfo;

    invoke-virtual {v5}, Lcn/cheln/explorer/beans/FileInfo;->g()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Lcn/cheln/support/app/a;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "/"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v3, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    sget-object v0, Lcom/direction/hold/ui/PathActivity;->v:Lcom/direction/hold/ui/PathActivity;

    invoke-direct {v2, v3, v0}, Lcn/cheln/explorer/beans/FileInfo;-><init>(Ljava/io/File;Landroid/content/Context;)V

    invoke-virtual {v2}, Lcn/cheln/explorer/beans/FileInfo;->n()V

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$13;->b:Lcom/direction/hold/ui/CommonActivity;

    iget-object v0, p0, Lcom/direction/hold/ui/CommonActivity$13;->b:Lcom/direction/hold/ui/CommonActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CommonActivity;->p:Lcn/cheln/explorer/beans/FileInfo;

    iget-object v3, p0, Lcom/direction/hold/ui/CommonActivity$13;->b:Lcom/direction/hold/ui/CommonActivity;

    iget-object v3, v3, Lcom/direction/hold/ui/CommonActivity;->d:Lcom/direction/hold/ui/CommonActivity;

    invoke-static {v0, v2, v1, v3}, Lcom/direction/hold/ui/CommonActivity;->a(Lcn/cheln/explorer/beans/FileInfo;Lcn/cheln/explorer/beans/FileInfo;Ljava/lang/Boolean;Lcom/direction/hold/ui/CommonActivity;)V

    goto :goto_0
.end method
